FROM registry.cn-hangzhou.aliyuncs.com/globefish/node:14.17.5

WORKDIR /usr/src/app/

ENV TZ=Asia/Shanghai

COPY . /usr/src/app/

RUN PRISMA_BINARIES_MIRROR=https://binaries.prisma.sh  npm install --registry=https://registry.npmmirror.com

RUN npm run pg

RUN npm run typings

RUN npm run tsc

EXPOSE 7001
